home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 037a / svgabgi3.zip / SVGA256.INC < prev    next >
Text File  |  1991-08-05  |  1KB  |  38 lines

  1. (************************************************)
  2. (*                         *)
  3. (*     SuperVGA 256 BGI driver defines    *)
  4. (*        Copyright (c) 1991        *)
  5. (*        Jordan Hargraphix Software        *)
  6. (*                        *)
  7. (************************************************)
  8.  
  9. type DacPalette256 = array[0..255] of array[0..2] of Byte;
  10.  
  11. (* These are the currently supported modes *)
  12. const
  13.   SVGA320x200x256    = 0;    (* 320x200x256 Standard VGA *)
  14.   SVGA640x400x256    = 1;    (* 640x400x256 Svga *)
  15.   SVGA640x480x256    = 2;    (* 640x480x256 Svga *)
  16.   SVGA800x600x256    = 3;    (* 800x600x256 Svga *)
  17.   SVGA1024x768x256    = 4;    (* 1024x768x256 Svga *)
  18.  
  19.   TRANS_COPY_PIX    = 8;
  20.  
  21. (* Setvgapalette sets the entire 256 color palette *)
  22. (* PalBuf contains RGB values for all 256 colors   *)
  23. (* R,G,B values range from 0 to 63               *)
  24. procedure SetVGAPalette256(PalBuf : DacPalette256);
  25. var
  26.   Reg : Registers;
  27.  
  28. begin
  29.   reg.ax := $1012;
  30.   reg.bx := 0;
  31.   reg.cx := 256;
  32.   reg.es := Seg(PalBuf);
  33.   reg.dx := Ofs(PalBuf);
  34.   intr($10,reg);
  35. end;
  36.  
  37.  
  38.